package cn.crex1.xiaomi.service.impl;

import java.util.List;

import cn.crex1.xiaomi.dao.CategoryDao;
import cn.crex1.xiaomi.dao.impl.CategoryDaoImpl;
import cn.crex1.xiaomi.pojo.Product;
import cn.crex1.xiaomi.service.CategoryService;

public class CategoryServiceImpl implements CategoryService{
	public CategoryDao categoryDao = new CategoryDaoImpl();
	//1查询所有分类查询
	@Override
	public List<Product> selectAllClassification() {
		Product products = new Product();
		List classification = categoryDao.selectAllClassification(products);
		if (classification!=null) {
			return classification;
		}
		return null;
		
	}

	
}
